3.9.2 \(\int (1-e x)^m (1+e x)^m (a+c x^2)^p \, dx\) [802]

Optimal. Leaf size=54 \[ x \left (a+c x^2\right )^p \left (1+\frac {c x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,-m;\frac {3}{2};-\frac {c x^2}{a},e^2 x^2\right ) \]

[Out]

x*(c*x^2+a)^p*AppellF1(1/2,-m,-p,3/2,e^2*x^2,-c*x^2/a)/((c*x^2/a+1)^p)

________________________________________________________________________________________

Rubi [A]
time = 0.03, antiderivative size = 54, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.120, Rules used = {531, 441, 440} \begin {gather*} x \left (a+c x^2\right )^p \left (\frac {c x^2}{a}+1\right )^{-p} F_1\left (\frac {1}{2};-p,-m;\frac {3}{2};-\frac {c x^2}{a},e^2 x^2\right ) \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(1 - e*x)^m*(1 + e*x)^m*(a + c*x^2)^p,x]

[Out]

(x*(a + c*x^2)^p*AppellF1[1/2, -p, -m, 3/2, -((c*x^2)/a), e^2*x^2])/(1 + (c*x^2)/a)^p

Rule 440

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[a^p*c^q*x*AppellF1[1/n, -p,
 -q, 1 + 1/n, (-b)*(x^n/a), (-d)*(x^n/c)], x] /; FreeQ[{a, b, c, d, n, p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n
, -1] && (IntegerQ[p] || GtQ[a, 0]) && (IntegerQ[q] || GtQ[c, 0])

Rule 441

Int[((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Dist[a^IntPart[p]*((a + b*x^n)^F
racPart[p]/(1 + b*(x^n/a))^FracPart[p]), Int[(1 + b*(x^n/a))^p*(c + d*x^n)^q, x], x] /; FreeQ[{a, b, c, d, n,
p, q}, x] && NeQ[b*c - a*d, 0] && NeQ[n, -1] &&  !(IntegerQ[p] || GtQ[a, 0])

Rule 531

Int[(u_.)*((c_) + (d_.)*(x_)^(n_.))^(q_.)*((a1_) + (b1_.)*(x_)^(non2_.))^(p_.)*((a2_) + (b2_.)*(x_)^(non2_.))^
(p_.), x_Symbol] :> Int[u*(a1*a2 + b1*b2*x^n)^p*(c + d*x^n)^q, x] /; FreeQ[{a1, b1, a2, b2, c, d, n, p, q}, x]
 && EqQ[non2, n/2] && EqQ[a2*b1 + a1*b2, 0] && (IntegerQ[p] || (GtQ[a1, 0] && GtQ[a2, 0]))

Rubi steps

\begin {align*} \int (1-e x)^m (1+e x)^m \left (a+c x^2\right )^p \, dx &=\int \left (a+c x^2\right )^p \left (1-e^2 x^2\right )^m \, dx\\ &=\left (\left (a+c x^2\right )^p \left (1+\frac {c x^2}{a}\right )^{-p}\right ) \int \left (1+\frac {c x^2}{a}\right )^p \left (1-e^2 x^2\right )^m \, dx\\ &=x \left (a+c x^2\right )^p \left (1+\frac {c x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,-m;\frac {3}{2};-\frac {c x^2}{a},e^2 x^2\right )\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(167\) vs. \(2(54)=108\).
time = 0.23, size = 167, normalized size = 3.09 \begin {gather*} \frac {3 a x \left (a+c x^2\right )^p \left (1-e^2 x^2\right )^m F_1\left (\frac {1}{2};-p,-m;\frac {3}{2};-\frac {c x^2}{a},e^2 x^2\right )}{3 a F_1\left (\frac {1}{2};-p,-m;\frac {3}{2};-\frac {c x^2}{a},e^2 x^2\right )+2 x^2 \left (c p F_1\left (\frac {3}{2};1-p,-m;\frac {5}{2};-\frac {c x^2}{a},e^2 x^2\right )-a e^2 m F_1\left (\frac {3}{2};-p,1-m;\frac {5}{2};-\frac {c x^2}{a},e^2 x^2\right )\right )} \end {gather*}

Warning: Unable to verify antiderivative.

[In]

Integrate[(1 - e*x)^m*(1 + e*x)^m*(a + c*x^2)^p,x]

[Out]

(3*a*x*(a + c*x^2)^p*(1 - e^2*x^2)^m*AppellF1[1/2, -p, -m, 3/2, -((c*x^2)/a), e^2*x^2])/(3*a*AppellF1[1/2, -p,
 -m, 3/2, -((c*x^2)/a), e^2*x^2] + 2*x^2*(c*p*AppellF1[3/2, 1 - p, -m, 5/2, -((c*x^2)/a), e^2*x^2] - a*e^2*m*A
ppellF1[3/2, -p, 1 - m, 5/2, -((c*x^2)/a), e^2*x^2]))

________________________________________________________________________________________

Maple [F]
time = 0.04, size = 0, normalized size = 0.00 \[\int \left (-e x +1\right )^{m} \left (e x +1\right )^{m} \left (c \,x^{2}+a \right )^{p}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-e*x+1)^m*(e*x+1)^m*(c*x^2+a)^p,x)

[Out]

int((-e*x+1)^m*(e*x+1)^m*(c*x^2+a)^p,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-e*x+1)^m*(e*x+1)^m*(c*x^2+a)^p,x, algorithm="maxima")

[Out]

integrate((c*x^2 + a)^p*(x*e + 1)^m*(-x*e + 1)^m, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-e*x+1)^m*(e*x+1)^m*(c*x^2+a)^p,x, algorithm="fricas")

[Out]

integral((c*x^2 + a)^p*(x*e + 1)^m*(-x*e + 1)^m, x)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-e*x+1)**m*(e*x+1)**m*(c*x**2+a)**p,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-e*x+1)^m*(e*x+1)^m*(c*x^2+a)^p,x, algorithm="giac")

[Out]

integrate((c*x^2 + a)^p*(x*e + 1)^m*(-x*e + 1)^m, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int {\left (c\,x^2+a\right )}^p\,{\left (1-e\,x\right )}^m\,{\left (e\,x+1\right )}^m \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + c*x^2)^p*(1 - e*x)^m*(e*x + 1)^m,x)

[Out]

int((a + c*x^2)^p*(1 - e*x)^m*(e*x + 1)^m, x)

________________________________________________________________________________________